package com.group9;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Lcouncillor on 2020/5/4.
 */
@SpringBootApplication
//@RestController  // = @Controller +  @ResponseBody
// SpringWeb -> 内嵌Tomcat
@Controller
@MapperScan(basePackages="com.group9.mapper")
@ServletComponentScan
public class FruitShoppingWebApplication {
    public static void main(String[] args) {

//        System.setProperty("es.set.netty.runtime.available.processors", "false");
        SpringApplication.run(FruitShoppingWebApplication.class, args);
    }
//
//    @RequestMapping("test")
//    public String test(){
//        return "test";
//    }

}
